<!--MSTP正常变更提质变更事件-->
<script>
import Common from "@/mixins/order/commonbg.js";
import OrderService from "@/api/order/OrderService.js";
import PPMForm from "@/crm3.0part7-ppm/core/ppmForm.vue";
export default {
  name: "mstp10461040",
  mixins: [PPMForm, Common],
  data() {
    return {
      //MSTP	正常变更，提质变更
      // proName: 'MSTP'
    };
  },
 async mounted() {
      await this.initCommon();
      this.formData["10461258-100000523"].isshow = false;
  },

  computed: {},
  methods: {
    circuitUphold() {
          //网络等级
          if (this.formData["10461258-100011554"].value == "80050036001") {
            this.formData["10461258-100000016"].value = "A";
            this.formData["10461258-100000523"].isshow = true; //双电路承载方式 展示
            //this.SetRequired("1", "10461258-100000523"); //双电路承载方式 必填
            this.SetRequired({ attrName:'双电路承载方式', formkey:'10461258-100000523', reqName:'empty', reqStatus:true});
          } else if (this.formData["10461258-100011554"].value == "80050036002") {
            this.formData["10461258-100000016"].value = "B";
            this.formData["10461258-100000523"].isshow = true; //双电路承载方式 展示
           // this.SetRequired("1", "10461258-100000523"); //双电路承载方式 必填
            this.SetRequired({ attrName:'双电路承载方式', formkey:'10461258-100000523', reqName:'empty', reqStatus:true});
          } else if (this.formData["10461258-100011554"].value == "80050036003" || this.formData["10461258-100011554"].value == "80050036004") {
            this.formData["10461258-100000016"].value = "C";
            //this.SetRequired("0", "10461258-100000523"); //双电路承载方式  非必填
            this.SetRequired({ attrName:'', formkey:'10461258-100000523', reqName:'empty', reqStatus:false});
            this.formData["10461258-100000523"].value = ""; //双电路承载方式 清空
            this.formData["10461258-100000523"].isshow = false;
          } else {
            this.formData["10461258-100000016"].value = "N";
           // this.SetRequired("0", "10461258-100000523"); //双电路承载方式 非必填
            this.SetRequired({ attrName:'', formkey:'10461258-100000523', reqName:'empty', reqStatus:false});
            this.formData["10461258-100000523"].value = ""; //双电路承载方式 清空
            this.formData["10461258-100000523"].isshow = false;

          }

    },
    isModContactLimit() {
      if(this.formData["10461258-142000765"].value=='1'){
        this.SetRequired({ attrName:'合同终止日期', formkey:'10461258-142002037', reqName:'empty', reqStatus:true});
      }else{
        this.SetRequired({ attrName:'合同终止日期', formkey:'10461258-142002037', reqName:'empty', reqStatus:false});
      }
    },
  },
};
</script>


